﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccreditWorkflowList.aspx.cs"
    Inherits="ZX.WebApp.WorkFlow.AccreditWorkflowList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Crm/Css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table width="90%" border="0" cellpadding="0" cellspacing="0" class="bg_up" align="center">
        <tr>
            <td style="height: 15px" class="title_1">
                流程代理明细
            </td>
        </tr>
        <tr>
            <td style="height: 10px; width: 100%">
                <hr />
            </td>
        </tr>
        <tr>
            <td style="width: 100%; height: 25px;">
                <table style="width: 100%; height: 100%" cellspacing="0" cellpadding="0">
                    <tr style="width: 100%">
                        <td style="height: 25px; width: 60px" class="articlelist">
                            流程类型：
                        </td>
                        <td style="width: 130px; height: 26px" align="left">
                            <asp:DropDownList ID="ddlCaption" runat="server" Width="142px">
                            </asp:DropDownList>
                        </td>
                        <td style="width: 60px;" class="articlelist" align="left">
                            流程名称：
                        </td>
                        <td style="width: 142px; height: 25px;" align="left">
                            <asp:DropDownList ID="ddlFlowCaption" runat="server" Width="142px">
                            </asp:DropDownList>
                        </td>
                        <td style="width: 50px; height: 25px;">
                            <asp:Button ID="btnAdd" runat="server" Text="查询" Width="50px" align="left" OnClick="btnAdd_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <!--查询结果-->
                <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
                    <tbody>
                        <tr>
                            <td style="width: 100%" align ="center">
                                <div id="Div1" runat="server" style="height: 389px; width: 100%; overflow: auto;
                                    border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid; border-left: #bdcaea 1px solid;
                                    border-top: #bdcaea 1px solid; ">
                                    <asp:GridView ID="gvAccredList" runat="server" BackColor="White" GridLines="None" 
                                        AutoGenerateColumns="False" Width="100%" Height= "99.7%" BorderStyle="None" BorderWidth="0px"
                                        CellPadding="0" Font-Size="10pt" CellSpacing="2" PageSize="1000" OnRowDataBound="gvAccredList_RowDataBound">
                                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="流程类型">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblCaption' runat="server" Text='<%#Eval("Caption")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="10%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="流程类型ID" Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblWFClassId' runat="server" Text='<%#Eval("WFClassId")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="0px" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="流程名称">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblFlowCaption' runat="server" Text='<%#Eval("FlowCaption")%>'> </asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="15%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="被代理人">
                                                <ItemTemplate>
                                                  <asp:Label ID='lblAccreditToName' runat="server" Text='<%#Eval("AccreditToName")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="7%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="代理人">
                                                <ItemTemplate>
                                                     <asp:Label ID='lblAccreditFromName' runat="server" Text='<%#Eval("AccreditFromName")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="7%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="创建人">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAccreditName' runat="server" Text='<%#Eval("AccreditName")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="7%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="开始时间">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAcceditStartTime' runat="server" Text='<%#Eval("AcceditStartTime")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="13%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="结束时间">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAcceditEndTime' runat="server" Text='<%#Eval("AcceditEndTime")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="13%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="是否有效">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAccreditStatues' runat="server"></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="6%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="代理ID" Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAccreditId' runat="server" Text='<%#Eval("AccreditId")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="0%" />
                                            </asp:TemplateField>
                                              <asp:TemplateField HeaderText="代理状态" Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAccreditStatus' runat="server" Text='<%#Eval("AccreditStatus")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="0%" />
                                            </asp:TemplateField>
                                              <asp:TemplateField HeaderText="收回流程状态" Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID='lblAccreditMatters' runat="server" Text='<%#Eval("AccreditMatters")%>'></asp:Label>
                                                </ItemTemplate>
                                                <ControlStyle Width="90%" />
                                                <ItemStyle Width="0%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="收回代理">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="hlkTakeback" runat="server" CommandName ="Takeback" Text="立即收回" OnClick="hlkTakeback_Click"
                                                        OnClientClick="javascript:return confirm('确认收回代理！');" Target="_self"></asp:LinkButton>
                                                    <asp:CheckBox ID="ckWorkFlow" runat="server" Text="收回流转中的流程代理 " Checked="false" />
                                                </ItemTemplate>
                                                <ItemStyle Width="22%" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <RowStyle HorizontalAlign="Center" CssClass="table_content" />
                                        <SelectedRowStyle HorizontalAlign="Center" />
                                        <HeaderStyle Font-Bold="False" HorizontalAlign="Center" Height="28px" CssClass="fixedheader"
                                            Font-Size="14px" ForeColor="White" />
                                        <EditRowStyle HorizontalAlign="Center" />
                                        <AlternatingRowStyle HorizontalAlign="Center" />
                                    </asp:GridView>
                                </div>
                                <!--   </asp:Panel>  -->
                            </td>
                        </tr>
                        <tr>
                            <td valign="bottom" class="title_1" style="height: 25px; width: 100%;">
                               
                            </td>
                        </tr>
                    </tbody>
                </table>
                <!--查询结果-->
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
